package com.cenxi.common.convert;

import com.cenxi.common.dto.RoleDTO;
import com.cenxi.common.vo.RoleVO;
import com.cenxi.dao.entity.Role;
import org.mapstruct.Mapper;

@Mapper(componentModel = "Spring")
public interface RoleConvert {

    /**
     * 转实体
     */
    Role toEntity(RoleDTO roleDTO);

    /**
     * 转vo
     */
    RoleVO toVO(Role role);
}
